import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
// vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
// 轮播图
import { Swipe, SwipeItem } from 'vant';
Vue.use(Swipe);
Vue.use(SwipeItem);

// 单元格
import { Cell, CellGroup } from 'vant';
Vue.use(Cell);
Vue.use(CellGroup);

// 宫格
import { Grid, GridItem } from 'vant';
Vue.use(Grid);
Vue.use(GridItem);

// 搜索框
import { Search } from 'vant';
Vue.use(Search);

// 分割线
import { Divider } from 'vant';
Vue.use(Divider);

// 图片
import { Image as VanImage } from 'vant';
Vue.use(VanImage);

//axios
import axios from 'axios'
axios.defaults.baseURL="http://127.0.0.1:3000/"
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
